#ifndef FINDSUCCESSDLG_H
#define FINDSUCCESSDLG_H

#include <QDialog>
#include <memory>
#include "userdata.h"


namespace Ui {
class FindSuccessDlg;
}

// 查找好友成功的界面类
class FindSuccessDlg : public QDialog
{
    Q_OBJECT

public:
    explicit FindSuccessDlg(QWidget *parent = nullptr);
    ~FindSuccessDlg();

    void setSearchInfo(std::shared_ptr<SearchInfo> sinfo);

private slots:
    void on_add_friend_btn_clicked();

private:
    Ui::FindSuccessDlg *ui;
    std::shared_ptr<SearchInfo> m_sinfo;
    QWidget* m_parent;
};

#endif // FINDSUCCESSDLG_H
